<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车案例</title>
    <script src="jquery.min.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            width: 1920px;
        }
        div.top{
            width: 100%;
            height: 50px;
            line-height: 50px;
            background: yellowgreen;
            position: relative;
        }
        div.left{
            float: left;
            margin-left: 15px;
        }
        div.right{
            float: right;
            margin-right: 15px;
        }
        ul#top{
            list-style: none;
            overflow: hidden;
        }
        ul#top li{
            float: left;
            padding-left: 10px;
            padding-right: 10px;
            border-right: 1px solid salmon;
            width: 100px;
            /* text-align: center; */
        }
        a{
            text-decoration: none;
        }
        a:hover{
            color: aqua;
        }
        div.ul{
            position: absolute;
            right: 15px;
            top: 50px;
            width: 840px;
        }
        div.ul ul{
            list-style: none;
            overflow: hidden;
            /* background: pink; */
        }
        div.ul ul.one>li{
            float: left;
            width: 120px;
            height: 200px;
            text-align: center;
            display: none;
        }
        
       
    </style>
</head>
<body>
    <div class="top">
        <div class="left">
            <h4>品优购欢迎您！</h4>
        </div>
        <div class="right">
            <ul id="top">
                <li><a href="">我的订单</a></li>
                <li class="push">我的品优购</li>
                <li><a href="">品优购会员</a></li>
                <li><a href="">企业采购</a></li>
                <li class="push">关注品优购</li>
                <li class="push">客户服务</li>
                <li class="push">网站导航</li>
            </ul>
        </div>
        <div class="ul">
            <ul class="one">
                <li></li>
                <li>
                    <ul class='children'>
                        <li>更好的歌</li>
                        <li>更好的歌</li>
                        <li>更好的歌</li>
                    </ul>
                </li>
                <li></li>
                <li></li>
                <li>
                    <ul class='children'>
                        <li>后额</li>
                        <li>后额</li>
                        <li>后额</li>
                    </ul> 
                </li>
                <li>
                    <ul class='children'>
                        <li>如果不为了让</li>
                        <li>如果不为了让</li>
                        <li>如果不为了让</li>
                    </ul>
                </li>
                <li>
                    <ul class='children'>
                        <li>问题就好吧</li>
                        <li>问题就好吧</li>
                        <li>问题就好吧</li>
                    </ul>
                </li>
            </ul>
        </div>
        
    </div>

    <script>
        $(function(){
            $('.push').eq(0).hover(function(){
                $('.children').eq(0).stop().show();
            });

            


        })
    </script>
</body>
</html>